package cn.earl.springboot.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.earl.springboot.entity.Demand;
import cn.earl.springboot.user.repository.DemandRepository;
import cn.earl.springboot.user.service.DemandService;

@Service
public class DemandServiceImpl implements DemandService {

	@Autowired
	private DemandRepository demandRepository;

	@Override
	public void save(Demand demand) {
		demandRepository.save(demand);
	}

	@Override
	public void deleteDemand(int id) {
		demandRepository.deleteById(id);

	}

}
